package org.zero.entity;

import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.type.Alias;

/**
 * @author Zero (cnzeropro@qq.com)
 * @date 2021/10/12 12:26
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Mapper
@Alias("goodsWithType")
public class GoodsWithType {
    private Long id;
    private String name;
    private BigDecimal price;
    private Integer stock;

    private TypeDO type;
}
